﻿<Fractals:UIColoringParameter xmlns:Fractals="clr-namespace:Fractals"  xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  xmlns:Controls="clr-namespace:ArgusControls;assembly=ArgusControls"  x:Class="Fractals.UIPeriodicColoringParameter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Foreground="White" Background="Black" IsEnabledChanged="UIColoringParameter_IsEnabledChanged">
    
	<StackPanel>
		<CheckBox x:Name="cbAutoSetFrequency" Content="{Binding Resource.ColoringParameterAutoSetFrequency, Mode=OneWay, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Left" Margin="5,5,0,0" Grid.Row="1" VerticalAlignment="Center" Foreground="White" Checked="cbAutoSetFrequency_Checked" Unchecked="cbAutoSetFrequency_Unchecked"/>
		<CheckBox x:Name="cbAnimate" Content="{Binding Resource.ColoringParameterAnimate, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="5,5,0,0" Foreground="White" Checked="cbAnimate_Checked" Unchecked="cbAnimate_Unchecked"/>
		<Grid x:Name="LayoutRoot" Background="Black" Margin="0,5,0,0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<TextBlock HorizontalAlignment="Left" Margin="5,5,0,0" TextWrapping="Wrap" Text="{Binding Resource.ColoringParameterTranslation, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center"/>
			<Slider x:Name="cTranslation" Grid.Column="1" Margin="5,5,5,0" VerticalAlignment="Center" Maximum="1" Foreground="Black" LargeChange="0.1" SmallChange="0.01" ValueChanged="cTranslation_ValueChanged"/>
			<TextBlock Grid.Row="1" HorizontalAlignment="Left" Margin="5,5,0,0" TextWrapping="Wrap" Text="{Binding Resource.ColoringParameterFrequency, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center"/>
			<Controls:DoubleTextBox x:Name="cFrequency" Grid.Row="1" Grid.Column="1" Background="Black" Foreground="White" SelectionBackground="#FF4B4B4B" Margin="5,5,5,0" VerticalAlignment="Center" ValueChanged="cFrequency_ValueChanged"/>
			<TextBlock Grid.Row="2" HorizontalAlignment="Left" Margin="5,5,0,0" TextWrapping="Wrap" Text="{Binding Resource.ColoringParameterNumberOfColorPeriods, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center"/>
			<toolkit:NumericUpDown x:Name="cNumberOfColorPeriods" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Margin="5,5,5,0" DecimalPlaces="1" Maximum="1000" ValueChanged="cNumberOfColorPeriods_ValueChanged" FlowDirection="RightToLeft"/>
		</Grid>
	</StackPanel>
</Fractals:UIColoringParameter>